home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW Related / MPW Script Tips 1.1.1 / Sample Scripts / Sample PS File < prev    next >
Encoding:
Text File  |  1991-08-08  |  899 b   |  37 lines  |  [TEXT/MPS ]

  1. % Written by Clarus T. DogCow
  2. %    Copyright:    © 1991 by Apple Computer, Inc., all rights reserved.
  3. %
  4. %    Sample PS File is a sample PostScript file to be used to demonstrate the -ps option of the MPW 
  5. % print command.
  6.  
  7. % Begin by saving any state MPW might have setup.
  8. gsave
  9.  
  10. % Now restore the original PostScript coordinate
  11. % system with 0,0 being at the lower-left corner.
  12. 0 728 translate
  13. 1 -1 scale
  14.  
  15. % Here is the font we're going to use.
  16. /t/Times-BoldItalic findfont 96 scalefont def
  17.  
  18. % Position the text block on the page.
  19. 150 500 translate
  20.  
  21. % Set the color of the text to a light gray.
  22. .8 setgray
  23.  
  24. % Move the pen for the first line of text,
  25. % then draw the text.
  26. 0 -80 moveto
  27. t setfont (Review) show
  28.  
  29. % Move the pen for the second line of text,
  30. % then draw the text.
  31. 20 -200 moveto
  32. t setfont (Draft) show
  33.  
  34. % Restore the state we saved earlier so MPW doesn't
  35. % know that we've been here...
  36. grestore
  37.